package com.zy.ems.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.zy.ems.mapper.UserMapper;
import com.zy.ems.model.UserEntity;

import com.zy.ems.common.base.BaseDao;

@Repository
public class UserDao extends BaseDao<UserEntity, Integer> {

    @Autowired
    private UserMapper userMapper;
    
    public UserEntity getUserEntityByUserName(String userName){
    	return this.userMapper.getUserEntityByUserName(userName);
    }

    @Override
    @SuppressWarnings("unchecked")
    public UserMapper getMapper() {
        return this.userMapper;
    }
    
    @Override
    protected String getNamespace() {
        return UserMapper.class.getName();
    }

}
